package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Kucunxinxi;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface KucunxinxiDao extends BaseMapper<Kucunxinxi> {

@Select("select * from kucunxinxi")
List<Map<String, Object>> daochuexcel();

@Select("select * from kucunxinxi where bianhao=#{zhujian}")
Kucunxinxi getByzhujian(String zhujian);

//youxxianxci

@Select("SELECT distinct(leibie) as aa,count(id) as bb FROM kucunxinxi group by leibie")List<Map<String, Object>> kucunxinxi_tj_leibie();//tonxgji1

}
